package com.example.designpatterns.factory.factoryMethod;

import org.springframework.core.annotation.Order;

public class PizzaStore {
    public static void main(String[] args) {
        OrderPizza orderPizza = null;
        String pz ="bj";
        if (pz.equals("bj")){
            orderPizza =  new BJOrderPizza();
        }else {
            orderPizza =  new LDOrderPizza();
        }


    }



}
